<template>
  <div class="header">
    <span class="left-text">购物车</span>
    <div class="right">
      <slot/>
    </div>
  </div>
</template>
<style scoped>
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  height: 44px;
  padding: 0 15px;
  z-index: 4;
  background-color: #fff;
}
.left-text {
  font-size: 18px;
}
.right {
  display: flex;
  /* justify-content: space-between; */
  align-items: center;
  /* width: 81px; */
  height: 44px;
}
</style>